package scaiev.test;

import java.util.HashSet;

import scaiev.SCAIEV;
import scaiev.frontend.FNode;
import scaiev.frontend.FrontendNodeException;
import scaiev.frontend.SCAIEVInstr;
import scaiev.frontend.SCAIEVNode.AdjacentNode;

public class selftest {
    public static void main(String[] args) {
		SCAIEV shim = new SCAIEV();
		SCAIEVInstr isax1  = shim.addInstr("ISAX1","-------", "011", "0001011", "R");
		isax1.PutSchedNode(FNode.RdRS1, 2); 
		isax1.PutSchedNode(FNode.RdRS2, 2);
		isax1.PutSchedNode(FNode.RdInstr, 2);
		isax1.PutSchedNode(FNode.RdIValid, 2);
		isax1.PutSchedNode(FNode.WrRD, 3, AdjacentNode.validReq); // Wr Register file
		try {
			shim.Generate("VexRiscv_5s",null);
		} catch (FrontendNodeException e) {
			e.printStackTrace();
		}
		
    }
}
